﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="smptTest.aspx.cs" Inherits="OSC.smptTest" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Welcome to Oilfields Supply Center Ltd.</title>
    <link href="styles/styles.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
      <asp:UpdatePanel ID="updtpnllogin" runat="server">
        <ContentTemplate>
    <div id="mainwrapper">
        <div id="header">
            <div class="logo">
                <div>
                    <img src="images/osclogo.gif" title="Oilfields Supply Center Ltd" alt="Oilfields Supply Center Ltd" /></div>
            </div>
        </div>
        <div class="clear">
        </div>
       
        <div>
            <table width="100%%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                    <td align="left" valign="top">
                      
                           
                                    <img src="images/logintop.gif" width="156" height="64" />
                           
                           
                      
                    </td>
                    <td width="100%" align="left" valign="top">
                        <div id="rightcontent">
                            <div class="leftcurv">
                                <img src="images/logoutleftcurv.gif" width="32" height="31" /></div>
                            <div class="logoutbg">
                            </div>
                            <div>
                            </div>
                            <div class="tabedcontent">
                                <div class="tabs">
                                    <h2>
                                        Smtp Server Test
                                    </h2>
                                   
                                    <div>
                                     <asp:UpdateProgress ID="UpdateProgress4" runat="server" AssociatedUpdatePanelID="updtpnllogin"
                        DisplayAfter="10">
                        <ProgressTemplate>
                            <asp:Image runat="server" ID="imgroll" ImageUrl="~/images/ajax-loader.gif" />
                            <cc1:AlwaysVisibleControlExtender ID="AlwaysVisibleControlExtender1" runat="server"
                                TargetControlID="imgroll" UseAnimation="true" HorizontalSide="Center" VerticalSide="Middle">
                            </cc1:AlwaysVisibleControlExtender>
                        </ProgressTemplate>
                    </asp:UpdateProgress>
                                        <table width="50%" border="0" cellspacing="0" cellpadding="0" id="login">
                                            <tr>
                                                <td colspan="2" align="center">
                                                    <asp:ValidationSummary ID="ValidationSummary1" ValidationGroup="login" runat="server" />                                                  
                                                </td>
                                            </tr>
                                            <tr>
                                                <td colspan="2" align="center">
                                                    <asp:Label runat="server" ID="lblError" ></asp:Label>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td align="right" width="36%">
                                                    smtp server :
                                                </td>
                                                <td>
                                                    <asp:TextBox ID="txtServerName" runat="server" CssClass="txtbox1" TabIndex="1"></asp:TextBox>
                                                    <asp:RequiredFieldValidator ID="ReqUserName" ValidationGroup="login" runat="server" ErrorMessage="Please enter smtp Server"
                                                        SetFocusOnError="True" ControlToValidate="txtServerName">*</asp:RequiredFieldValidator>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td align="right" width="36%">
                                                    Port #: 
                                                </td>
                                                <td>
                                                    <asp:TextBox ID="txtPort" runat="server" CssClass="txtbox1" TabIndex="1"></asp:TextBox>
                                                    
                                                </td>
                                            </tr>
                                            <tr>
                                                <td align="right" width="36%">
                                                    User Name :
                                                </td>
                                                <td>
                                                    <asp:TextBox ID="txtUserName" runat="server" CssClass="txtbox1" TabIndex="1"></asp:TextBox>
                                                   
                                                </td>
                                            </tr>
                                            <tr>
                                                <td align="right" width="36%">
                                                    Password :
                                                </td>
                                                <td>
                                                    <asp:TextBox ID="txtPassword" runat="server" CssClass="txtbox1" TabIndex="1" TextMode="Password" ></asp:TextBox>
          
                                                </td>
                                            </tr>
                                            <tr>
                                                <td align="right">
                                                    From :
                                                </td>
                                                <td>
                                                    <asp:TextBox ID="txtFrom" runat="server" CssClass="txtbox1" TabIndex="2" ></asp:TextBox>
                                                    <asp:RequiredFieldValidator ID="ReqPassword" ValidationGroup="login" runat="server" ErrorMessage="Please enter the from mailid"
                                                        ControlToValidate="txtFrom" SetFocusOnError="True">*</asp:RequiredFieldValidator>
                                                </td>
                                            </tr>
                                            
                                            <tr>
                                                <td align="right">
                                                    To :
                                                </td>
                                                <td>
                                                    <asp:TextBox ID="txtTo" runat="server" CssClass="txtbox1" TabIndex="2" ></asp:TextBox>
                                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" ValidationGroup="login" runat="server" ErrorMessage="Please enter the to mailid"
                                                        ControlToValidate="txtTo" SetFocusOnError="True">*</asp:RequiredFieldValidator>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td align="right">
                                                    Subject :
                                                </td>
                                                <td>
                                                    <asp:TextBox ID="txtSub" runat="server" CssClass="txtbox1" TabIndex="2" ></asp:TextBox>
                                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" ValidationGroup="login" runat="server" ErrorMessage="Please enter subject"
                                                        ControlToValidate="txtSub" SetFocusOnError="True">*</asp:RequiredFieldValidator>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td align="right">
                                                    Subject :
                                                </td>
                                                <td>
                                                    <asp:TextBox ID="txtBody" runat="server" CssClass="txtbox1" TabIndex="2" TextMode="MultiLine"  ></asp:TextBox>
                                                    
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    &nbsp;
                                                </td>
                                                <td>
                                                    <asp:Button runat="server" ID="btnSubmit"  ValidationGroup="login" Text="Submit" CssClass="button" OnClick="btnSubmit_Click" />
                                                   
                                                    
                                                </td>
                                            </tr>
                                        </table>
                                    </div>
                                    
                                </div>
                            </div>
                        </div>
                    </td>
                </tr>
            </table>
            </div>
       
         
         
         
                   
        <div class="clear">
        </div>
        <div id="footer">
            <div class="copyright">
                © Copyright 2010-2011. Oilfields Supply Center Ltd. ® All Rights Reserved.</div> </div> </div>
     </ContentTemplate> </asp:UpdatePanel> 
     
    </div>
    </form>
</body>
</html>
